package com.genius.smsweb.majormanage;

import com.genius.smsbase.Controller.GenericController;
import com.genius.smsdao.majormanage.domain.Major;
import com.genius.smsservice.majormanage.service.MajorManager;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "专业管理-专业", description = "MajorController")
@RestController
@RequestMapping("major")
public class MajorController extends GenericController<Major,Long, MajorManager> {
    MajorManager majorManager;

    /**
     *
     * @param majorManager
     */
    @Autowired
    public void setMajorManager(MajorManager majorManager) {
        this.majorManager = majorManager;
        this.manager = this.majorManager;
    }
}
